package com.xiaoze.question.mapper;

import java.util.List;
import com.xiaoze.question.domain.QuestionAnswerUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 用户回答Mapper接口
 *
 * @author 胡昊泽
 * @date 2024-08-02
 */
public interface QuestionAnswerUserMapper extends BaseMapper<QuestionAnswerUser>
{
    /**
     * 查询用户回答
     *
     * @param id 用户回答ID
     * @return 用户回答
     */
    public QuestionAnswerUser selectQuestionAnswerUserById(Long id);

    /**
     * 查询用户回答列表
     *
     * @param questionAnswerUser 用户回答
     * @return 用户回答集合
     */
    public List<QuestionAnswerUser> selectQuestionAnswerUserList(QuestionAnswerUser questionAnswerUser);

    /**
     * 新增用户回答
     *
     * @param questionAnswerUser 用户回答
     * @return 结果
     */
    public int insertQuestionAnswerUser(QuestionAnswerUser questionAnswerUser);

    /**
     * 修改用户回答
     *
     * @param questionAnswerUser 用户回答
     * @return 结果
     */
    public int updateQuestionAnswerUser(QuestionAnswerUser questionAnswerUser);

    /**
     * 删除用户回答
     *
     * @param id 用户回答ID
     * @return 结果
     */
    public int deleteQuestionAnswerUserById(Long id);

    /**
     * 批量删除用户回答
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteQuestionAnswerUserByIds(Long[] ids);
}
